package com.mingjieli.excel.form;

/**
 * 标题模型
 * @author mingjie
 * @since 2020-05-18
 */
class TitleModel {
	private final int startRowNum;
	private final int startColumnNum;
	/**
	 * 标题宽度默认1，1代表只有一个单元格的宽度，横向无需合并单元格
	 */
	private final int width;
	/**
	 * 标题的高度默认1，1代表只有一个单元格，纵向无需合并单元格
	 */
	private final int height;

	private String name;

	public TitleModel(int startRowNum, int startColumnNum, int width, int height) {
		this.startRowNum = startRowNum;
		this.startColumnNum = startColumnNum;
		this.width = width;
		this.height = height;
	}

	public TitleModel(int startRowNum, int startColumnNum, int width, int height, String name) {
		this(startRowNum, startColumnNum, width, height);
		this.name = name;
	}

	public int getStartRowNum() {
		return startRowNum;
	}

	public int getStartColumnNum() {
		return startColumnNum;
	}

	public int getWidth() {
		return width;
	}

	public int getHeight() {
		return height;
	}

	public String getName() {
		return name;
	}
}
